package io.github.talelin.latticy.dto.warearea;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;
import java.math.BigDecimal;

/**
 * @authoer:wulongbo
 * @createDate:2022/5/10
 * @description:
 */

@Data
@NoArgsConstructor
public class WareareaDTO {

    @Pattern(regexp = "^[0-9a-zA-Z_]{1,}$", message = "{warehouse.code.pattern}")
    @Length(min = 3, max = 8, message = "{warehouse.code.length}")
    @NotBlank(message = "{warehouse.code.not-blank}")
    private String code;

    @NotBlank(message = "{warearea.not-blank}")
    @Length(min = 2, max = 20, message = "{warearea.length}")
    private String name;


    @Positive
    private int areaOrder;

    /**
     * 类型：false:非接受;true:接收
     */
    private Boolean receiveFlag;

    /**
     * 类型：false:非仓储;true:仓储
     */
    private Boolean stockFlag;

    /**
     * 类型：false:非拣货;true:拣货
     */
    private Boolean pickFlag;

    /**
     * 类型：false:非退货;true:退货
     */
    private Boolean returnFlag;

    /**
     * 类型：0:不可用;1:可用
     */
    private Boolean status;
}
